package com.admin4j.server.system.service.impl;

import com.admin4j.server.system.entity.SysUser;
import com.admin4j.server.system.mapper.SysUserMapper;
import com.admin4j.server.system.service.ISysUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户信息表 服务实现类
 * </p>
 *
 * @author andanyang
 * @since 2023-11-07
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements ISysUserService {

    @Override
    public SysUser getByUserName(String username) {
        return baseMapper.getByUserName(username);
    }

    @Override
    public SysUser getByPhoneNumber(String phoneNumber) {
        return baseMapper.getByPhoneNumber(phoneNumber);
    }
}
